path = "C://a.txt"

f = open(path,"w")
f.write("abc\n")
f.writelines("zxv")
f.close()

f = open(path, "r")
for line in f:
    print(line)
f.close()

